#include "customerevent.h"


QEvent::Type CustomerEvent::m_EventType = QEvent::None;

CustomerEvent::CustomerEvent(QPointer<JQHttpServer::Session> session) : QEvent(eventType())
{

    m_session = session;
}

CustomerEvent::~CustomerEvent()
{

}

QEvent::Type CustomerEvent::eventType()
{
    // 创建事件Type
    if (m_EventType == QEvent::None)
        m_EventType = (QEvent::Type)QEvent::registerEventType();

    return m_EventType;
}


QPointer<JQHttpServer::Session> CustomerEvent::getSession(void)
{
    return m_session;
}
